Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propose Documentation for Software Best Practices, Coding Conventions, and Style #1504

Merged

Conversation

gerickson
Copy link
Contributor

Problem

CHIP will be composed of much software contributed from participating member organizations. However, for any new CHIP code, there should be documentation for software best practices, coding conventions, and style.

Summary of Changes

Proposed a minimal framework for a documentation guide, in AsciiDoc format, for software best practices, coding conventions, and style.

This reflects this conversation snippet on a prior, broader-scope approach to this document in that it restricts the initial framework to essentially one simple maxim: "When in Rome, do as the Romans do.". We can add from here as repetition and consensus dictate.

Fixes #335

Copy link
Contributor

@rwalker-apple rwalker-apple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

shared infrastructure bears the least flexibility and bears the greatest
adherence to these guidelines.

image:CODING_STYLE_GUIDE-figure1.png[Figure 1. Graphical summary of the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that we should say that C++ is required, and straight C is not ok? (Maybe I'm reading this diagram incorrectly).

Maybe we can just remove this diagram, and/or make C allowed in all boxes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the diagram to show / allow C/C++ in C++ contexts.

@woody-apple woody-apple self-requested a review July 9, 2020 02:19
@woody-apple
Copy link
Contributor

@jelderton @hawk248 @andy31415 ?

@andy31415 andy31415 merged commit 9525301 into project-chip:master Jul 9, 2020
jmartinez-silabs pushed a commit to SiliconLabs/matter that referenced this pull request Feb 15, 2024
Merge in WMN_TOOLS/matter from documentation/port_changes_back to silabs

Squashed commit of the following:

commit 803031a4a0194fdca7ebf4d3bd6097f884f8f2d6
Author: Curtis Rahman <[email protected]>
Date:   Thu Jan 25 15:29:13 2024 -0500

    Added back removed last release new features

commit 4131dcf57c030f876816295e9efc25f660bcdd04
Author: Curtis Rahman <[email protected]>
Date:   Thu Jan 18 15:47:27 2024 -0500

    Ported back changes
jmartinez-silabs pushed a commit to SiliconLabs/matter that referenced this pull request May 8, 2024
Merge in WMN_TOOLS/matter from documentation/port_changes_back to silabs

Squashed commit of the following:

commit 803031a4a0194fdca7ebf4d3bd6097f884f8f2d6
Author: Curtis Rahman <[email protected]>
Date:   Thu Jan 25 15:29:13 2024 -0500

    Added back removed last release new features

commit 4131dcf57c030f876816295e9efc25f660bcdd04
Author: Curtis Rahman <[email protected]>
Date:   Thu Jan 18 15:47:27 2024 -0500

    Ported back changes
rcasallas-silabs pushed a commit to rcasallas-silabs/connectedhomeip that referenced this pull request Jun 20, 2024
Merge in WMN_TOOLS/matter from documentation/port_changes_back to silabs

Squashed commit of the following:

commit 803031a4a0194fdca7ebf4d3bd6097f884f8f2d6
Author: Curtis Rahman <[email protected]>
Date:   Thu Jan 25 15:29:13 2024 -0500

    Added back removed last release new features

commit 4131dcf57c030f876816295e9efc25f660bcdd04
Author: Curtis Rahman <[email protected]>
Date:   Thu Jan 18 15:47:27 2024 -0500

    Ported back changes
rcasallas-silabs pushed a commit to rcasallas-silabs/connectedhomeip that referenced this pull request Jun 20, 2024
Merge in WMN_TOOLS/matter from documentation/port_changes_back to silabs

Squashed commit of the following:

commit 803031a4a0194fdca7ebf4d3bd6097f884f8f2d6
Author: Curtis Rahman <[email protected]>
Date:   Thu Jan 25 15:29:13 2024 -0500

    Added back removed last release new features

commit 4131dcf57c030f876816295e9efc25f660bcdd04
Author: Curtis Rahman <[email protected]>
Date:   Thu Jan 18 15:47:27 2024 -0500

    Ported back changes
chirag-silabs pushed a commit to rosahay-silabs/connectedhomeip that referenced this pull request Jul 15, 2024
Merge in WMN_TOOLS/matter from documentation/port_changes_back to silabs

Squashed commit of the following:

commit 803031a4a0194fdca7ebf4d3bd6097f884f8f2d6
Author: Curtis Rahman <[email protected]>
Date:   Thu Jan 25 15:29:13 2024 -0500

    Added back removed last release new features

commit 4131dcf57c030f876816295e9efc25f660bcdd04
Author: Curtis Rahman <[email protected]>
Date:   Thu Jan 18 15:47:27 2024 -0500

    Ported back changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Propose Documentation for Software Best Practices, Coding Conventions, and Style
6 participants